
function calc_gz(){
    // 查询html5文档的某个标签
  input=document.getElementById('gz')
//   获取输入框的值
    console.log(input.value)
    goz= input.value

    console.log(goz)

    if (goz>=7662){
        wxyj=7662*0.225
        // print '五险一金是',wxyj,'元'
    }else{
        wxyj=goz*0.225} 
        // print '五险一金是',wxyj,'元'  

    kcgz=goz-wxyj 
    yne=kcgz-3500
    console.log(kcgz)
    console.log(yne)


    labe2=document.getElementById('d2')
    labe2.innerHTML="扣除五险一金后工资:"+kcgz
    labe3=document.getElementById('rs')
    labe3.innerHTML="五险一金是:"+wxyj
    // label.innerHTML="五险一金"+wxyj

    // print '扣除社保后的工资是', kcgz,'元'
    // print '应纳所得额是', yne,'元'
     

    if ( yne<0 ){
         label = document.getElementById('d1')
         label.innerHTML="你不用缴税且你还是多挣点把 别把自己饿着了" 
        
    } 
    
    else if(yne<=1500){se=yne*0.03-0}
         
        
    else if(yne<=4500){se=yne*0.1-105}
        
    
    else if (yne<=9000){ se=yne*0.2-555 }
       
    
    else if(yne<=35000) {se=yne*0.25-1005}
        
    
    else if(yne<=55000){se=yne*0.3-2775}
        
        
    else if(yne<=80000){ se=yne*0.35-5505}
       
        
    else if(yne>80000){se=yne*0.45-13505}
        

    // print '你要缴纳的税是',se,'元'  


    dsgz=kcgz-se
    // print '你的到手工资', dsgz,'元'






    label = document.getElementById('d1')
    

    // label.innerHTML="你要缴纳的税"+se
    label.innerHTML="到手工资："+dsgz 
}